package org.nlp2rdf.navigator.client.common;

import java.io.Serializable;

/**
 * @author Sebastian Hellmann <hellmann@informatik.uni-leipzig.de>
 * 
 * CAVE: label is not set yet and needs to be retrieved individually 
 */
@SuppressWarnings("serial")
public class ExampleDTO implements Serializable , Comparable<ExampleDTO>{

	String uri = null;
	String label = null;
	String comment = null;

	@Override
	public String toString(){
		return uri+"\nLabel: "+label+"\nComment: "+comment;
	}
	
	@Override
	public int hashCode(){
		return (uri==null)?0:uri.hashCode();
	}
	
	@Override
	public boolean equals(Object o){
		if(o instanceof ExampleDTO){
			return this.uri.equals(((ExampleDTO)o).uri);
		}else{
			return false;
		}
	}
	
	public int compareTo(ExampleDTO o) {
		return this.uri.compareTo(o.uri);
	}
	
	public String getLabel() {
		return label;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public String getUri() {
		return uri;
	}

	public void setUri(String uri) {
		this.uri = uri;
	}

	public String getComment() {
		return comment;
	}

	public void setComment(String comment) {
		this.comment = comment;
	}

	
	
}
